package com.entity;

public class Moderator {
    private int mdId;
    private String adAvatar;
    private String adPassword;
    private String adEmail;
    private String createTime;

    public int getMdId() {
        return mdId;
    }

    public void setMdId(int mdId) {
        this.mdId = mdId;
    }

    public String getAdAvatar() {
        return adAvatar;
    }

    public void setAdAvatar(String adAvatar) {
        this.adAvatar = adAvatar;
    }

    public String getAdPassword() {
        return adPassword;
    }

    public void setAdPassword(String adPassword) {
        this.adPassword = adPassword;
    }

    public String getAdEmail() {
        return adEmail;
    }

    public void setAdEmail(String adEmail) {
        this.adEmail = adEmail;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Moderator moderator = (Moderator) o;

        if (mdId != moderator.mdId) return false;
        if (adAvatar != null ? !adAvatar.equals(moderator.adAvatar) : moderator.adAvatar != null) return false;
        if (adPassword != null ? !adPassword.equals(moderator.adPassword) : moderator.adPassword != null) return false;
        if (adEmail != null ? !adEmail.equals(moderator.adEmail) : moderator.adEmail != null) return false;
        if (createTime != null ? !createTime.equals(moderator.createTime) : moderator.createTime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = mdId;
        result = 31 * result + (adAvatar != null ? adAvatar.hashCode() : 0);
        result = 31 * result + (adPassword != null ? adPassword.hashCode() : 0);
        result = 31 * result + (adEmail != null ? adEmail.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        return result;
    }
}
